import request from '@/utils/request'
export function listmaintain(query) {
  return request({
    url: '/nssc/maintain/list',
    method: 'get',
    params: query
  })
}
export function listmaintain1(query) {
  return request({
    url: '/nssc/maintain/list1',
    method: 'get',
    params: query
  })
}
export function getmaintain(id) {
  return request({
    url: '/nssc/maintain/' + id,
    method: 'get'
  })
}
export function updaterepaire(id) {
  return request({
    url: '/nssc/maintain/uprepaire/' + id,
    method: 'get'
  })
}
export function addmaintain(data) {
  return request({
    url: '/nssc/maintain',
    method: 'post',
    data: data
  })
}
export function updatemaintain(data) {
  return request({
    url: '/nssc/maintain',
    method: 'put',
    data: data
  })
}
export function delmaintain(id) {
  return request({
    url: '/nssc/maintain/' + id,
    method: 'delete'
  })
}
